extends RigidBody2D

export var min_speed=150  # 最小速度
export var max_speed=200  # 最大速度
var mod_types=["fly","swim","walk"]

# Called when the node enters the scene tree for the first time.
func _ready():
	$AnimatedSprite.animation=mod_types[randi()%mod_types.size()]
	
	pass # Replace with function body.

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	pass


func _on_Visibility_screen_exited():
	queue_free()
	pass # Replace with function body.
	
func _on_start_game():
	queue_free()
